﻿using Abp.Application.Services.Dto;
using ARchGL.Platform.Dto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ARchGL.Platform.Dtos
{
    /// <summary>
    /// 自检 ViewModel
    /// </summary>
    public class SelfChecksDto : EntityAndNumberDto
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }
        /// <summary>
        /// 状态（位枚举）：1已通知、2已整改
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 检查内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 执行检查人标识集合
        /// </summary>
        public string CheckUsersArray { get; set; }
        /// <summary>
        /// 执行检查人
        /// </summary>
        public List<string> CheckUserNames { get; set; }
        /// <summary>
        /// 创建人标识
        /// </summary>
        public Guid? CreatorUserId { get; set; }
        /// <summary>
        /// 创建人名称
        /// </summary>
        public string CreatorUserName { get; set; }
        /// <summary>
        /// 执行检查日期
        /// </summary>
        public DateTime CheckDate { get; set; }
        /// <summary>
        /// 执行检查日期时间戳
        /// </summary>
        public long CheckDateUniversalTime { get { return CheckDate.ToUnixTimestamp(); } }
        /// <summary>
        /// 被通知人
        /// </summary>
        public string NotifyUsersArray { get; set; }
        /// <summary>
        /// 被通知人名称集合
        /// </summary>
        public List<string> NotifyUserNames{ get; set; }
        /// <summary>
        /// 抄送人标识集合
        /// </summary>
        public string CCUsersArray { get; set; }
        /// <summary>
        /// 抄送人名称集合
        /// </summary>
        public List<string> CCUserNames { get; set; }
        /// <summary>
        /// 视图标识集合
        /// </summary>
        public string ProjectViewPortsArray { get; set; }
        /// <summary>
        /// 检查附件
        /// </summary>
        public List<string> Attachments { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 创建时间戳
        /// </summary>
        public long CreationUniversalTime { get { return CreationTime.ToUnixTimestamp(); } }
    }
}
